package com.reform.service;

import com.reform.pojo.phase.ViewBatchPhase;
import com.baomidou.mybatisplus.extension.service.IService;
import com.reform.res.Result;

import java.sql.SQLException;

/**
 * <p>
 * VIEW 服务类
 * </p>
 *
 * @author mortale
 * @since 2021-09-12
 */
public interface IViewBatchPhaseService extends IService<ViewBatchPhase> {

    /**
     * 获取所有阶段检查信息
     * @return
     */
    Result getAllBatchPhase() throws SQLException;

    /**
     * 通过phaseId获取所有阶段检查信息
     * @param phaseId
     * @return
     * @throws SQLException
     */
    Result getBatchPhaseByPhaseId(String phaseId) throws SQLException;

    /**
     * 通过batchId获取所有阶段检查信息
     * @param batchId
     * @return
     * @throws SQLException
     */
    Result getBatchPhaseByBatchId(String batchId) throws SQLException;

    /**
     * 通过phaseId获取已选阶段检查信息
     * @param phaseId
     * @return
     */
    Result getSelectByPhaseId(String phaseId);

    /**
     * 通过phaseId获取未选阶段检查信息
     * @param phaseId
     * @return
     */
    Result getNotSelectPhaseByPhaseId(String phaseId);

    /**
     * 通过阶段检查编号获取批次名称
     * @param phaseId 阶段检查id
     * @return
     */
    Result getBatchNameByPhaseId(String phaseId);
}
